package ZuoYe23;

import java.util.Scanner;

public class JuanZi {
	public int juanzi(Question[] q) {
		Scanner scan = new Scanner(System.in);
		int score = 0;
		for (Question question : q) {
			System.out.println(question.getQuestion());
			int number = scan.nextInt();
			if (number == question.getAnswer()) {
				score += 20;
			}
		}

		return score;

	}

}
